package com.huatai.vba.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.huatai.vba.dal.dao.VbaFileHandlerDAO;
import com.huatai.vba.dal.model.VbaFileHandler;
import com.huatai.vba.service.VbaFileHandlerService;

@Service
public class VbaFileHandlerServiceImpl implements VbaFileHandlerService {

	@Autowired
	private VbaFileHandlerDAO vbaFileHandlerDAO;

	@Override
	public void addVbaFileHandler(VbaFileHandler vbaFileHandler) {
		vbaFileHandlerDAO.insert(vbaFileHandler);
	}

	@Override
	public VbaFileHandler queryById(String handlerId) {
		return vbaFileHandlerDAO.queryById(handlerId);
	}

	@Override
	public List<VbaFileHandler> queryVbaFileHandler(VbaFileHandler vbaFileHandler) {
		return vbaFileHandlerDAO.queryByModel(vbaFileHandler);
	}

}
